/*
 * @Author: zhangyang
 * @Date: 2022-06-11 17:44:15
 * @LastEditTime: 2022-06-12 09:38:20
 * @Description: 
 */
const { contextBridge } = require('electron')

const { readFileSync } = require('fs');
const { resolve } = require('path');
const srcParse = require('./core/srcParse');

const content = readFileSync(resolve(__dirname, './src.txt'), { encoding: 'utf-8' }).toString();

contextBridge.exposeInMainWorld('YoungLiveData', srcParse(content));